class CommonCurrencyRateEntity {
  String currency;
  String date;
  String default_currency;
  dynamic rate;

  CommonCurrencyRateEntity({this.currency, this.date, this.default_currency, this.rate});

  factory CommonCurrencyRateEntity.fromJson(Map<String, dynamic> json) {
    return CommonCurrencyRateEntity(
      currency: json['currency'],
      date: json['date'],
      default_currency: json['default_currency'],
      rate: json['rate'],
    );
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['currency'] = this.currency;
    data['date'] = this.date;
    data['default_currency'] = this.default_currency;
    data['rate'] = this.rate;
    return data;
  }
}
